// 根据传入的成功状态、信息、结果，快捷返回请求
module.exports = function(success, msg, result, res){
	let response = {
		success: success,
		msg: msg,
		result: result
	}
	res.writeHead(200,{'Content-Type': 'application/json'});
	res.write(JSON.stringify(response));
	res.end();
}